Fix save/restore failure cleanup
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 2 Feb 2008 10:51:54 +0000 (10:51 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 2 Feb 2008 10:51:54 +0000 (10:51 +0000)
commit912c5a1f617d48e383be042645ec0c33b8c7309c
treee57b068e7da63a5ce8bdcf7e0fdf8a64ce686f1e
parentef532054c0de7c4a548e0124b42acf9477f580d5
Fix save/restore failure cleanup

The save failure cleanup introduced in 13543:207523704fb1 is
incorrect: if we didn't get as far as actually suspending the domain,
then the guest domain will not be expecting the devices to be removed
(seen on both Linux and Solaris, which don't expect a 'Closing' state
when they hold the device open). Only re-jig devices if we definitely
shut the domain down.

Signed-off-by: John Levon <john.levon@sun.com>
tools/python/xen/xend/XendCheckpoint.py